home *** CD-ROM | disk | FTP | other *** search
- Path: wizvax.wizvax.net!not-for-mail
- From: multics@wizvax.wizvax.net (Richard Shetron)
- Newsgroups: comp.lang.pl1,comp.lang.c
- Subject: Re: PL/I and C
- Date: 27 Feb 1996 22:04:02 -0500
- Organization: Wizvax Communications, Troy, NY; USA
- Message-ID: <4h0gn2$mnk@wizvax.wizvax.net>
- References: <4gh5ru$eng@goanna.cs.rmit.EDU.AU> <AD536AAB9668B76CD@mcdialb09.it.luc.edu> <312E363C.3CDE@corp.dialog.com> <TANMOY.96Feb23212936@qcd.lanl.gov>
- NNTP-Posting-Host: wizvax.wizvax.net
-
- In article <TANMOY.96Feb23212936@qcd.lanl.gov>,
- Tanmoy Bhattacharya <tanmoy@qcd.lanl.gov> wrote:
- >In article <312E363C.3CDE@corp.dialog.com>
- >Paul Gorodyansky <paul_gorodyansky@corp.dialog.com> writes:
- >
- ><snip>
- >PG: Sorry, you missed my point. If I want to have SEVERAL masks for THE SAME
- >PG: area of memory, that is have SEVERAL DIFFERENT Structures overlaid my
- >PG: buffer, C has a feature for this - a Union, where I can have members of
- >PG: different Nature overlaid the same area of memory, BUT, unlike PL/I, an
- >PG: Array CAN NOT be a member of a Union. But, it is always a case in our
- >PG: Text Processing - I want to look at my source record's buffer at some
- >
- >Are you claiming that
- > union { int x;
- > char y[4]; } z;
- >is invalid C? Why?
-
- Is that int x a long int or a short int?
-
- Last I knew the size of an int was compiler dependent.
-